package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * Created with IntelliJ IDEA.
 * User: carapka
 * Date: 19.10.12
 * Time: 1:07
 * To change this template use File | Settings | File Templates.
 */
public class AnyPage extends Page {
    //cмена языка
    @FindBy(xpath = "//div[@id='wrapper']/header/div/div/ul/li/a")
    public WebElement chLangEn;

    @FindBy(xpath = "//div[@id='wrapper']/header/div/div/ul/li/a")
    public WebElement chLangNid;

    @Override
    void tryToOpen() {
        MyPageFactory.getPage(driver, LoginPage.class).login("admin", "admin");
    }

}
